Modify Player Balance

Modify Player Balance

1) Request URL

URL: {OPURL}/Cash/TransferInOut

2) Request Parameters

Parameter Name Type Description
AppID string Operator’s unique identifier
AppSecret string Operator’s AppSecret
UserID string Operator’s unique player identifier
TransactionID string Transaction order number
Amount float Amount to add or deduct (+ add, - deduct)
RoundID string The ID of the current round
GameID string Game ID
ReqTime datetime Request time
Reason string bet: Deducting the bet amount; win: Paying out the winnings; refund: Server internal error, refunding the bet
IsEnd bool Indicator for game end status when awarding prizes (true: the current game round has ended, false: the current game round has not ended)
  • If our system encounters a Timeout error when requesting this interface, it may send multiple requests in a short period of time. Please use the TransactionID to determine duplicates and ensure idempotence.
  • Example:
    复制复制{
    "UserID": "testuser1",
    "AppID": "fake",
    "AppSecret": "1234-abcd-xxxkkk",
    "TransactionID": "abc-xxx-yyyy-zzz",
    "Amount": 10,
    "RoundID":"667f70ec68f376bf8c282a55",
    "ReqTime":"2024-06-29T09:26:52.035906101+07:00",
    "Reason":"bet"
    }
    

3) Return Result

Parameter Name Type Description
Balance float Player’s current available balance after modification
  • Example:
    复制复制{
    "code": 0,
    "error": "",
    "data": {
      "Balance": 11004
     }
    }
    
  • Error Example:
    复制复制{
    "code": 1,
    "error": "some error occur!!"
    }